/*
 * Hex.java
 *
 * Created on November 18, 2007, 12:43 PM
 *
 * Copyright (C) 2007-2008  Hylke van der Schaaf
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, in version 3 of the License.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */

package hextd.hex;

import hextd.tower.Tower;
import java.awt.Graphics2D;

/**
 *
 * @author hylke
 */
public interface Hex {
    public static int BASE  = 1;
    public static int EMPTY = 2;
    public static int PATH  = 3;
    
    public static enum highlightType {
        none,
        selectTower,
        placeTower,
        editHex;
    }
    
    public int getType();
    public char getShortName();
    public void resetScale();
    public void paintBase(Graphics2D g2_0, Graphics2D g2_1);
    public void paintEffects(Graphics2D g2);
    
    /* The editor sometimes needs to move hexes */
    public void setLocation(int x, int y);
    public int[] getLocation();
    public float[] getFloatLocation();
    public float[] getPaintLocation();
    public void setHighlight(highlightType hightlight);
    public void setHighlightRange(float range);
    public boolean isFree();
    
    public boolean hasTower();
    public void setTower(Tower tower);
    public void unSetTower();
    public Tower getTower();
}
